package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class IdentityOption implements LikeOptions {

    private int beginIndex;
    private int endIndex;
    private boolean includingIdentity;
    private boolean excludingIdentity;

    public IdentityOption(int beginIndex,
                          int endIndex,
                          boolean includingIdentity,
                          boolean excludingIdentity) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.includingIdentity = includingIdentity;
        this.excludingIdentity = excludingIdentity;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isIncludingIdentity() {
        return includingIdentity;
    }

    public boolean isExcludingIdentity() {
        return excludingIdentity;
    }

}
